//
//  YJXTitleCollectionView.h
//  IntegralMall
//
//  Created by 易金鑫 on 2017/10/16.
//  Copyright © 2017年 Toocms. All rights reserved.
//



#import <UIKit/UIKit.h>
@protocol YJXTitleCollectionViewDelegate

@required
-(void)didSelectItem:(NSInteger) index;

@end

@interface YJXTitleCollectionView : UIView

-(instancetype)initWithFrame:(CGRect)frame TitleArray:(NSArray *)titleArray CountOfLine:(NSInteger) countOfLine;

@property(nonatomic,weak,nullable)id <YJXTitleCollectionViewDelegate> delegate;

@property(nonatomic,assign)NSInteger selectIndex;
@property(nonatomic,strong)UICollectionView *collectionView;
-(void)scrollToSelectIndex;
@end
